﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:local="clr-namespace:AOuSuisJeWP7"
    x:Class="AOuSuisJeWP7.MainPage"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">
 
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="my profile" Click="ApplicationBarMenuItem_Click" />
                <shell:ApplicationBarMenuItem Text="logout" Click="ApplicationBarMenuItem_Click_1" />
            </shell:ApplicationBar.MenuItems>
            <shell:ApplicationBarIconButton Click="ApplicationBarIconButton_Click" IconUri="/icons/appbar.refresh.rest.png"  Text="Refresh" IsEnabled="True"/>
            <shell:ApplicationBarIconButton Text="New Enigme" IconUri="/icons/appbar.add.rest.png" Click="ApplicationBarIconButton_Click_2" />
            <shell:ApplicationBarIconButton Text="Participate" IconUri="/icons/appbar.share.rest.png" Click="ApplicationBarIconButton_Click_1" />
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">      

        <!--TitlePanel contains the name of the application and page title-->

        <!--ContentPanel - place additional content here-->
        <controls:Pivot Title="OuSuisJe">
        	<controls:PivotItem Header="Actus">
                <Grid>
                    <local:Actus/>
        		</Grid>
        	</controls:PivotItem>
        	<controls:PivotItem Header="Friends">
        		<Grid>
                    <local:FbLogin HorizontalAlignment="Left" Margin="2,0,0,0" x:Name="fbLogin1" VerticalAlignment="Top" Height="480" Width="450" Visibility="Collapsed" IsEnabled="False" />
                    <local:Friends x:Name="Friends"/>
                    <Button Content="Récuperer mes amis Facebook" Height="72"  HorizontalAlignment="Left" Margin="6,157,0,0" Name="FbFriends" VerticalAlignment="Top" Width="448" Click="FbFriends_Click" Visibility="Visible"  />
                </Grid>
        	</controls:PivotItem>
        	<controls:PivotItem Header="Enigmes">
        		<Grid>
        			<local:Enigmes/>
        		</Grid>
        	</controls:PivotItem>
        </controls:Pivot>

    </Grid>

</phone:PhoneApplicationPage>